{extend name="public/common"}
{block name="body"}
<title>基本设置</title>
</head>
<body>

<div class="page-container">

    <div class="dataTables_wrapper" style="padding-bottom:0;">
        <div id="tab-system-total"  class="HuiTab">
            <div class="tabCon">
                <div class="mt-20">
                    <div class="text-c" style="padding :20px 0;">
                        <form action="" method="post" class="l" style="margin-left:20px;">
                            指定日期:
                            <input type="text" name="searchtime" onfocus="WdatePicker({dateFmt:'yyyy-MM-dd',maxDate:'{$current}'})" value="{$searchtime}" class="input-text Wdate" style="width:120px;">
                            流失天数:
                            <input type="text" onkeyup="this.value=this.value.replace(/[^\d]/g,'');if(this.value>5000){this.value=5000;}" onpause="this.value=this.value.replace(/[^\d]/g,'');if(this.value>5000){this.value=5000;}" name="searchscope" value='{if condition="intval($searchscope)>0"}{$searchscope}{/if}' placeholder="默认不指定" class="input-text" style="width:120px;">
                            <button class="btn btn-success" type="submit" style="margin-right:20px;"><i class="Hui-iconfont">&#xe665;</i> 搜索</button>
                        </form>
                    </div>
                    <table class="table table-border table-bordered table-bg table-hover">
                        <thead>
                        <tr class="text-c">
                            <th width="20%"></th>
                            <th width="20%">近三日流失</th>
                            <th width="20%">近一周流失</th>
                            <th width="20%">近一月流失</th>
                           {if condition="intval($searchscope)>0"}<th width="20%">近{$searchscope}天流失</th>{/if}
                        </tr>
                        </thead>
                        <tbody>
                        <tr class="text-c">
                            <th>未投注人数</th>
                            <td><a style="text-decoration:underline;" href="javascript:showDetail('近三日流失','{:url(\'Recharge/treeDaysList\')}?seachtime={$searchtime}&sj=0');">{$loss_data.loss_three}</a></td>
                            <td><a style="text-decoration:underline;" href="javascript:showDetail('近一周流失','{:url(\'Recharge/treeDaysList\')}?seachtime={$searchtime}&sj=1');">{$loss_data.loss_week}</a></td>
                            <td><a style="text-decoration:underline;" href="javascript:showDetail('近一月流失','{:url(\'Recharge/treeDaysList\')}?seachtime={$searchtime}&sj=2');">{$loss_data.loss_month}</a></td>
                            {if condition="intval($searchscope)>0"}<td><a style="text-decoration:underline;" href="javascript:showDetail('近{$searchscope}日流失','{:url(\'Recharge/treeDaysList\')}?seachtime={$searchtime}&sj=3&cope={$searchscope}');">{$loss_data.loss_search}</a></td>{/if}
                        </tr>
                        </tbody>
                    </table>
                </div>
            </div>
        </div>
    </div>
</div>


{/block}
{block name="js"}
<script type="text/javascript" src="__SYSMET__/common.js"></script>
<script type="text/javascript" src="__SYSMET__/lib/My97DatePicker/4.8/WdatePicker.js"></script>
<script type="text/javascript">
    $(function() {
        $("#tab-system-total").Huitab({
            index: 0
        });
    });
    function showDetail( lab,url ){
        parent.showDetails(url,lab,'70%','60%');
    }
</script>
{/block}
